package org.example.factory;

/**
 * @BelongsProject: javaFoundation
 * @BelongsPackage: org.example.factory
 * @Author: dtq
 * @CreateTime: 2023-12-14  15:30
 * @Description: TODO
 * @Version: 1.0
 */
public class PhoneFactory {
    public Phone makePhone(String phoneType) {
        if (phoneType.equalsIgnoreCase("HMPhone")) {
            return new HMPhone();
        } else if (phoneType.equalsIgnoreCase("iPhone")) {
            return new IPhone();
        }
        return null;

    }
}
